package com.yellowpage.nsp.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * NspLogger entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NSP_LOGGER")
public class NspLogger implements java.io.Serializable {

	// Fields

	private Integer id;
	private String logId;
	private String requestTime;
	private String requestInfo;
	private String requestType;
	private String requestIp;
	private String responseCode;
	private String responseData;
	private String responseInfo;

	// Constructors

	/** default constructor */
	public NspLogger() {
	}

	/** full constructor */
	public NspLogger(String logId, String requestTime, String requestInfo,
			String requestType, String requestIp, String responseCode,
			String responseData, String responseInfo) {
		this.logId = logId;
		this.requestTime = requestTime;
		this.requestInfo = requestInfo;
		this.requestType = requestType;
		this.requestIp = requestIp;
		this.responseCode = responseCode;
		this.responseData = responseData;
		this.responseInfo = responseInfo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "LOG_ID", nullable = false, length = 28)
	public String getLogId() {
		return this.logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	@Column(name = "REQUEST_TIME", length = 20)
	public String getRequestTime() {
		return this.requestTime;
	}

	public void setRequestTime(String requestTime) {
		this.requestTime = requestTime;
	}

	@Column(name = "REQUEST_INFO", length = 1000)
	public String getRequestInfo() {
		return this.requestInfo;
	}

	public void setRequestInfo(String requestInfo) {
		this.requestInfo = requestInfo;
	}

	@Column(name = "REQUEST_TYPE", length = 5)
	public String getRequestType() {
		return this.requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	@Column(name = "REQUEST_IP", length = 20)
	public String getRequestIp() {
		return this.requestIp;
	}

	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}

	@Column(name = "RESPONSE_CODE", length = 30)
	public String getResponseCode() {
		return this.responseCode;
	}

	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}

	@Column(name = "RESPONSE_DATA", length = 50)
	public String getResponseData() {
		return this.responseData;
	}

	public void setResponseData(String responseData) {
		this.responseData = responseData;
	}

	@Column(name = "RESPONSE_INFO", length = 10000)
	public String getResponseInfo() {
		return this.responseInfo;
	}

	public void setResponseInfo(String responseInfo) {
		this.responseInfo = responseInfo;
	}

}